Changed test cases to use api on the fakedatabase

Changed test cases to use api on the fakedatabase so we don't hardcode
test data in two places - including credentials, seriesId,