environments test and insert