Testing the functions