Add selftest for global step macro