modify some methods.
create database config sample for phpunit testing, enable to change
entity directory, implement some tests, methods, and some modification.