test for setup and is_valid?