add test directory

add tests for controllers
add tests for models and factory