Organise tests

Renamed and split test files match module names
Replaced unnecessary doctests with unit tests