fixed test bug, tested view controller factory