Made the following changes
1] Added a few tests
2] Better algo to eliminate arbitrary functions from output
   of pdsolve