Added tests for Polymer encounter-map element

Also remove unneeded functions in utils.dart