Added assertions to test case.