fix method access
add test