adding test for coord2px
adding test for coord2px
starting to refactor