revise unit testing error