migrate box test to spec