Adding spec tests