Fix bug parsing &amp;. Add test case