add test cases to secure struct preferences and qPrefUpdateManager work together Signed-off-by: Jan Iversen <jani@apache.org>