added changes to model and test files

edited the models session class and added test for business logic api.