[api] fix /public/binary_packages as used by KDE-Apps.org/openDesktop.org and add test case for it