improved xAsNan, and added more tests for x_ methods