Using the factory method
Test for the clone method includes the replication of search params
Added a test to make sure we can clone a query even when it does not
have a primary key
Got the test for saving a query working.