Mock idgenerator created to enable instantiation during tests