Bug with creating definition with factory by shorthand fixed. Fixed bug when app may crash when changing invocation selected.
Added unit tests for property injection