added function for toggling between test and production code in sc files