Add tests for ::tasks method