added assertions to tests.