fix requiring specs
rewrite tests