wrote some needle tests
added group needles helper function + tests