Added categories model, changed a few tests and added test for the abstractSearch.