doc: Move testing ideas to braindump.md, add section on error handling