more complete unit test