Fixed incorrect variable name in tests