Testing functions
Complete, checking tests would be good