add unit tests to FMS