Tests for physical resource factory class.