add mnesia unit test.