enhanced unit test