testOpen method added