Add testcase for crash on nick change
Fix crash on nick change
Add Nick change function
Add Nick change function
Formatting