Write unit tests for create speech action