changed test cases to fix the bug in transactions