most tests passing with rest client