written tests for normalize input