modify unit test and Error