COMP: Add sanity checking & test script