Adding 'sanity check' and associated unit test.