Debug mongoose queries not working on test environment