Created some conditional functions tests