Providing tests for proposal #804

P.S. You should realy use getMockForAbstractClass instead defining a new class to test and abstract object.