Add tests for complex and file.