updated test for all functions