add test.php
add generate script and Entity.php