Add test for implicit global vars

#35