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