refactoring test when have wrong value