Added recursive printing for sign and fixed tests.