Adding tests for FormatForm

Fixes #138