Add cmp_mem_lit() test

This test compares the contents of some memory against a literal list of
bytes.

This test is more straightforward to use than cmp_mem() when the
expected byte values are known beforehand.