generalize script for making test boxes