Implementation for pre-commuted tests
Added tests for margin and padding in combination