To test the new multi-rotor engines:
"In December 1964, another dual-rotor test engine, the Type 3820 (2 x 491cc) was designed. (...)
Mazda invested heavily in imported and exclusive machine tools, and proceeded with building test versions of other multi-rotor rotary engines, including three and four-rotor versions.
These test engines were installed in the Mazda R16A prototype mid-engine sports car, and extensive testing was conducted on the high-speed test track at the Miyoshi Proving Ground. The test track had been completed in June 1965 and was the most advanced in Asia at that time"
Source: Mazda official website.