Add unit tests for perl-side variables