Fixing --serial command. TODO added

When running tests with --serial parameter -> causes error because assert object is NULL.

Also i've found 2nd bug with --serial execution.
In case test is not calling 'beforeExit' -> test would always fail with "test timed out" error. I haven't fixed that yet, but wrote comment.