Fix getting task on-* properties in DSL

 * Unit test

Change-Id: I949db952920da0606993f3dc260fb84ef2c4fdaf