Transaction tests should be implemented using Java 8 lambdas