Fix runtime error caused by wrong class name
Add test for margins when using FlowLayout