Unit test for #272

Not able to reproduce yet

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>