Refactor test.

- Clean up the test database
- Use the same the connection for testing. No need to create other connection
- fixtures