added tests, changed normalize() to normalize_nums()