redistribute test into unit and add integration with PHPUnit/DbUnit
restructure integration