Added missing semicolons.
Added missing semicolon.
Ensuring execute returns a proper promise.
Added a few base query tests.