Fixed setup_defaults. Template tests working.