Testing script for the whole process