test: move test specific codes to each test from setup