improving unit test