add unit tests for locaion and fileinfo