tests for resourceFacade