Fixing security unit tests