Added tests for the controller factory and products