add tests for new OpaquePointer methods

These tests pass on all three backends, though a most recent rakudo is required.