Added missing dereference operator.
Added unit test for Span class.