Added unit tests for protected methods