refined unit test