Simplifying and recovering system tests