Corrected RestFactory UnitTest