added a mock facility and generic resource test