fix PhpUnit test caseing.
Merge pull request #229 from meadsteve/unit-testing

Fix unit test case errors