Added PMM test code