fixed test error and added report option