rename tests/ to data/
migrate tests to phpunit