Added new Tests and changed the way the basecontroller creates an instance of the gpgmodel

Signed-off-by: Thomas Spycher <tspycher@zerodine.com>