Setup proper test environment