Cleaned up FreeResource() so that it returns the correct thing when it
succeeds.
Added FreeResource() test with mismatched resource name (resource
does not exist).
Finished first wave of unit tests for RM