added version endpoint test
refactored client controller