Generalized the testing scripts.