test with name instead of file