Added tests for tracking users.
Added tests for mode