Added unit test code for mix.