rest post working with test