adds test before functionality (deres a good boy)