fix basic registration and add test