#2 Added a test for running an invalid test package also begun refactoring how the plugin interacts with the DB.