Added optional application name to handler options + unit tests.