Create test which shows problem in #315