basic test of POST and PUT