Fix login test and changed database cleaner strategy.