Fixed transaction issues and test cases - major update due to orient db 1.7