Test the functions