fixed unit test so that it runs by 'make test'