changes SIGN macro, adds testing for it