unit test updates
bug fixes
moved test classes from core/lib/ to core/lib/test
unit tests for users and uris