Initial tests for api/core.rb