added test with private method