attempt at 1 test for function