The test coverage is far incomplete, but it at least is a starting point. Related: OS#4031 Change-Id: I82bb85b684d2db3a6b1e96a68ffde03e22affa6b