Prepare test env correctly