add unit tests for broadcastability check, and use a faster version