Unit tests for EMM