Context manager test