Custom file size calcualtion and test method