Fixed code analysis suggestions for unit tests