Fix #838 modified log testing bug

Fix #838