setup test environment