Merge pull request #6 from nilxam/docs_write_test

update writing tests part
update the explaination for two examples