Create a test and update build config to run tests

Added postgres to the build process and the creation of a test database.
It will now run an example test that is guaranteed to pass.