some basic tests for global variable allocation