add tests for shepherd's functionality
add tests for shepherd's functionality