Rewrite and fix phpunit and so the test of DB