improve magick setter and getter
fix test on excepted scenarios