Add rendering tests for box-shadow and fix bugs they helped to discover