added test for log with context