Sync tests - some branch coverage improvements
Sync - tests - get_journal_opts

appr. code moved to get_journal_opts + test
fix 'detect is unknown test'