Add resourcemanager tests