Add Optional support for named parameter methods. Add unit tests.