added wmc parser test, fixed bug in wmc parser