Tests for happy numbers