Added test for patch attribute