completed tests for the new ruby api