added tests to get and post