add simple test for MAP inference