fixed bug with at_test