unit test impl simplified