Fixed the TestBufferResourceManager helper class for testing