bug fixing, PMT testing framework complete