adds test based on bug report