Added tests to check handling of percentage margin values.