add testing framework

add phpunit.xml
add test for controller