test only works when run internally