added unit tests, rhino mocks ref and extension