Fixed all warnings that were present with -Wextra.
Handle the problematic transaction with session command as well as empty transactions. Also changed test to use wait_for_monitor as well as pass the value to check as a parameter to the `check` function.
The test cases check that the size limit works and that following transactions work.
Added functional tests that cover the basic cases.