Set logback layout for tests

Also some StackOverflow stuff.