debug: need to update w after learning from dense matrix
refactoring test of FTRLLogisticRegression