Added a test for aaaa|aa|a.