functional tests moved to controller tests
login fixed and tests added