write tests for occurrence_by_id
clean up all params method