Added a means for unit testing vmmap functions
Added some testing code for vmmap and found a bug in it.