Fix some code standard issues in tests.
Fixes code standard issues and correct type of assertion used in a test.