Task fixes

Fixed setter bug in Task
Added setting test.