calc file test refactoring