Added class loader, updated test to be phpunit compatible.