fix test failure and remove whitespace