Mock framework and simple testing infrastructure

@juberti @andresusanopinto @vrk 
name your variables meaningfully without abreviations