fixed error with test option and added report option