adding reflection test, fixing up code to make it pass

this may also impact #106, but I haven't tested that yet