Finished pfm part. First 7 test cases passed.