improve print checking and ignore files which name contains "test"