Fixed no check at chec-and-run. Added initial tests.