Add imagename to LogEvent tests
Merge pull request #1549 from dotcloud/fix-logevent-tests

Add imagename to LogEvent tests
Don't read from stdout in hijack unless attached. Fixes #1503