feat(test): check format conditions in test

Inspired by #663