new centralized functions for regression testing of cwas

Signed-off-by: Zarrar Shehzad <czarrar@gmail.com>