writting mod tests