fixed errors in test env