plug mock of factory