Fix #1325. Add test_find_empty_alt

Quick fix for issue #1325 and added a test for the regex in find_empty_alt