Added the rest unit and integration tests.