Add test on length assertion