Merge pull request #1 from archdevil666pl/master

Test cases, bugfixes and phinx configuration.