test(parse-options): add tests for $parseOptions helper

Add test spec for $parseOptions helper, base for addressing issue #618.