added to function signature code

need to test more robustly
moved tests into a folder