Fixed bad asserts in test case