Unit tests for assignment regex.
Added tests for hashname regex