Fix. `type` argument in `form:add_buffer` may be nil.
Add. Form tests.