Add test for variable setting + outputting