test methods and a bug fix