add testing framework

add phpunit.xml
add test for controller
add bin/test