Checking a compression spring