started to add some PHPUnit testing