Unit test work

- Slightly updating PHPUnit testing, will have to put a lot more effort into them.