TESTS: Add an initial simple test for COMPARE_AND_WRITE

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>