Added some unit tests for mpl.