use t.Error() instead of t.Fail() on test.
Add sources element to output. closes #2