first pass at test integration scripts (mostly by @AbrarSyed)