Formula with test for libsecret-0.18

New pull request due to messing up the previous one. Added test to formula as requested.
Would be good to maybe report these changes upstream?