Added unit test for getPrefix method