added test script
added test script
made pretty efficient