adding tests for pattern matching and maps