Update Map.scala

Added a simple test to avoid obvious OutOfBounds exceptions that would have accured .. Still not compiled though