The collider tests of a leptophilic scalar for the anomalous magnetic moments