[FLINK-1208] add some tests