fixed test namespaces
moved sample code up
phpunit