Run tests when nocheck is not set in DEB_BUILD_OPTIONS and skip tests and building tests when nocheck is set. Also make the check's style in sync with the official Debian package.