added rudimentary tests