wrote some basic tests, fixed up batch