Unit tests for sampling

Added unit tests for the NSampling and DiffSampling classes. Used mock
images