dynamic filename generation + tests