adds spec tests