added test helper stuff, guard and colored test stuff