Fix invokeWhilePaused when called with arguments.

Also added a bunch more tests for ActivityController lifecycle methods.