wrote mix tests (randomness is strange to test)