fix version class and tests
fix controller factory test
add controller tests
remove unused use statements in controller