Fixed a few of the errors with the testing

only need to fix delete query and a few more tests