Documentation for writing and running tests

Based on what we've learnt so far.