Organise tests

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