Fixed a bug where the Lock Timeout exception could not be autoloaded
Enhanced the server startup in the REST server test