added firstApplied and new log tests