added server mock and client for testing