Add specs to test external functions