new main macro
added main test