tests for conditions extended, fixed bug caused by wrong use of generics (similar to ARQGRA-249)