add test for adding username constraint