improve integration test: pass exception from separate thread to main test thread
fix db config
move integration tests to separate project