Mock framework and simple testing infrastructure

@juberti @andresusanopinto @vrk 
what is this used for?