make separate test class for getTitle
no title in input tests for getTitle
add title test, fix title bug where some documents could get ignored