Added Unsafe unit test