added guard and spork for testing environment