updated tests for new files path (files_api) and added test support for pre-5.0.0 thumbnail paths - #20900