Fixed bug in ruby endpoint test