Fixed db:get-test-data-by-id to fail gracefully