writing some tests for function declaration alternatives