minro refactoring
added test cases for array access and ternary expression in mappings