Fix typo, add hsl/hsla (with whitespaces) unit tests and move stuff outside of functions