finally a working unit test