Added tests for the FACTOR command