Fixed controllers tests to work with preinitialized DB.