Added testing framework.
Added test programs for B and C.