tests use valid? method