add test task
add guard to auto run tests