Split test cases up by method being tested.
Implemented FreeResource in RM, and added a test for it in testRM.