Exploring the Learning Capabilities of Language Models using LEVERWORLDS