Create test. Fixed the function problem.