All functions tests passing