Fix test for non existing element in a map
 Adding generic test main file.

 Also fix folder factories to always use a context
 Remove unsed wrap methods.