Finish all user functions and test functions