Investigating Tasks in Formal Language Learning