Add testcase for diagnose.py's python import check