The tests are failing to run because an error is being thrown querying your trade table, it has maybe been corrupted. You might be able to fix it by reloading the database like at the start of the project
If the same thing happens then you might be overwriting the trade table or saving something down incorrectly. I would need to see your code to be able to help troubleshoot.
Let me know how you get on. If you need to send over your code, please forward it to devrel@kx.com.