Fixing test case where transaction was not available