fix bug with at_test