Added tests to check auto_mapping behaviour