basic tests for patch