adding test function to our project