basic testing framework for simple components
made web operations mockable for testing