Add tests to user functions