fix static method tests in unitTest