Added basic test loop