Add unit tests for mix functions.