simplified unit test