fix and add tests
fix and add tests

zbycz/iD,edpop/iD,edpop/iD,openstreetmap/iD,mapmeld/iD,kepta/iD,ngageoint/hootenanny-ui,AndreasHae/iD,tbicr/iD,1ec5/iD,morray/iD,bagage/iD,1ec5/iD,mapmeld/iD,kartta-labs/iD,AndreasHae/iD,zbycz/iD,mapmeld/iD,kartta-labs/iD,energiekollektiv/openmod.sh-id,AndreasHae/iD,bagage/iD,morray/iD,kepta/iD,kartta-labs/iD,energiekollektiv/openmod.sh-id,openstreetmap/iD,openstreetmap/iD,digidem/iD,edpop/iD,tbicr/iD,andreic-telenav/iD,digidem/iD,1ec5/iD,ngageoint/hootenanny-ui,bagage/iD,andreic-telenav/iD,ngageoint/hootenanny-ui