Added Test for PM Grid Functions

Added file TestPMGridFunctions.java