fix returns in test