added test for user-api
fixes #17, fixes #14