tests for bugs found in orientdb