removed print statements
added test to check for inherited documents
check for compound key ids and fetch them as dict