factorization of boxname and adding bats acceptance tests