Database tests: added use Assert statement
Database tests: updated to Context

- removed calling deprecated methods
- renamed $dao to $context
Database tests: reenabled backjoin tests for joning over specific column
Merge pull request #1295 from hrach/db-tests

Db tests