added test for padding