inserted some tests, need more a lot more want to incorporate karma, need to find out how