mysqlerror for mongodb documents in testenvironment

Hi friends,
  Am using mysql and mongodb in my application.
I have create mongodb models for 2 tables
books and books_history
after created these , am running test cases for previously written
controllers which are not using mongodb tables

then am getting this error

looks like the controller is assuming that the book_history table in mysql's db.
have you specified the app to talk with mongodb.
other things like update and all worked for this tables? my opnion is they might not work as well.

Thanks,
Siva