Fix wrong function call
Add basic tests