Added register method to HandleBarsAdapter and test.