metrics & testing