Refactored fakeobjects package into the API so that it can be used in
plugin extensions