Bug fixes
added tests for Referencer