added unit tests for scrooge api