Update task meta parsing. Add unit tests.