Magic test

This is the branch for matlab magic tests