unit tests

got rid of some unused code from a previous iteration