refactor tests
solve global scope var