test: make prune test env filtering more targeted