JSTPEndpoint: added test for setToPattern getToPattern setFromPattern getFromPattern