fixes in functional and model test case

- fixes #88 
- fixes #89
- removed leading \ in ModelTestCase::setDb which was causing trouble