Unit tests for megamind