closed #1186
add more acceptance tests && tests refactoring
added sqldump for testing
tests tests tests!