MA test, fixed bug in mds_destroy_entity
fixing some free list bugs
adding back two-way conversion test