Added test script

added a setup procedure to make things more cleaner and easier.