Fixed evaluation problem with ${id}, added tests for this function.