Added copy to tests of core and to otp-rest-servlet