Added assertions to test.