failing test for Session.query.then