unit tests for FMW