This adds a comprehensive set of tests for the message unqueueing service. Additionally, it improves how message databases are used for testing environments.