Added missing tests, renamed is_valid? to valid?

... and some config improvents.