added is_valid() tests
new methods, tests...