Move test to spec