added pointer casting test