tests for fmd.js