added a test
refactoring
forgot to add OptionT