Adding tests to mads object class