fixing method test error