Add RestContract tests