added more pdfreader tests and cleaned some bugs