Enhanced testing and documentation