Added --with-check option to run unit tests.