added test for #500