fixed tests (switched assert and befoerExit paramters
fixed this example to work