added test file for functions