make synchronisation tests reliable
add an optional type that reassambles the Optional type of Java 8