re #25 fixed all of the problems with the code and test. Having one final bug more related to amrita: https://github.com/josephwilk/amrita/issues/118