Simplify test data in attempt test
Remove leading newlines in code examples. Fixes #1280