context: Fixed failing schema tests

* Rewrote _build_mappings method.
* Fixed wrong parameter call in creating default mapping.

Signed-off-by: Joe MacMahon <joe.macmahon@cern.ch>