Fixed (#841)

This is a fix for #841 and supporting test.
How does the string `"beta-2"` get passed in here?