setup env. wrote test.