Added -j option to run_test.py for multi-threading
tests: Add a test for global pointers to function