Implement tests for open.