Use chunks, tests in tmp dir and fix validations with defaults