Fix test command which always return 1.