[OSGi] Amend unit test to ensure full coverage of changed method