Make factory.php lowercase
Initial test cases