testing of private methods