isSecure method and the tests for it implemented.