Adding unit tests for OCS API

@karlitschek