adding some basic tests and changing the api to use series objects