adding test code for pamsite.  bugs for compressed indices encountered