Testing the functionality