Make sure that messages and services are generated before compiling test server. Added a one second delay to make sure that the configuration changes are committed on the server