mod test code