added unit test for setGpsConfig + obligatory bugfixes