added spec tests, slight issue with testing, need to figure out