Error when add then delete test

Created by: kanishka-azimi

When I added a test, ran test suite, then deleted the test, I ran into a failure.

https://github.com/databrary/databrary/issues/491