Removed sessions dependancy on useragent for testing
Added tests for session code