Added remaining tests for typedefWhitespaceRule

- Fixed undefined checking in typedefWhitespaceRule .hasOption and .getOption