matrix padding testing