fix test implementation, would lead to deadlock
rework database testing to further increase db test isolation
travis environment vars
travis build: move env vars to script
fix
Merge pull request #45 from wongak/fix_test

fix test implementation, would lead to deadlock