Updates gem dependencies

includes fixes for testing