add test cases for private method