how to check a diesel engine before buying