FIX for ManyToOne targetType & OSGI MANIFEST

Fixed the ManyToOne targetType bug and included a test