#21 add test for cached file item record
#21 minor refactoring