improved tests for variable issues