Improve tests. Add license blocks and change author name

- Make messages more helpful when tests fail
- Wrap test_add_on_list() and its helper
- Make test_add_on_list stricter