Test for slug calculation