Added Unit Tests for user authorization && user-related db fixes.