add log and test