move ring-mock into test scope