Added CHECK() macro and added it to 'test/BasicTests.cpp', closes #2.