added tests for new functions