Add more tests on model alias and query restrictions.
Merge branch 'master' of github.com:bestmike007/appbase