[FLINK-1207] Context environments are realized through factories

minor: I would add an error message, so we don't panic when this test fails and have an idea of what happened ;)