Test framework fixes, added pointerAddressSpaceCast test