how to test private methods in ruby