Added unit tests for get & getcollection methods