Add a test for issue388