refactor get_test_id so it can be used elsewhere
add delete_test_by_id method
add feature to prune deleted tests