Add unit test for weight_manager
Fix weight_manager for new version of classifier

Add version
Use double for couter instead of unsigned int