Test the whole process