unit testing CRUD functions in version model

also removing the need to use database for ci_sessions