add test to mvc, add logger, bug fix