changed -test functionality