Add tests for handle::swap() and loose_handle::swap().