Fix tests and add pry-debugger