test for proper return values