Add config and rmr UTs back, fix exception memory free

Take configuration and rmr unit tests back into use after fixing the
tests. Improve earlier memory leak fix what was done in the version
3.0.0 to free memory also in a case when python exception has been
thrown.

Issue-Id: RIC-865

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I2a6708fe3dd10d7fea8b5fb5ead8fd895d6826bd
7 files changed