Add functional tests for getting and posting /resources