fixed test matcher, fixed env[KEY] assigment