added tests t6, t7. replaced deprecated caddr_t