remove duplicate code
do not require deleted file
extract Manager#upoad_metrics into module and start testing