Adding BRS integration tests.

Fixing BRS-109 and BRS-110