adding test function for normalize()