fixing assert statement

Sometimes the assert statements are not written as static methods. This should be corrected, like in the other test files before.