TESTS: Fixed some small bugs in tests.