adding tests for a function I forgot about