Added recursive method. Cleaned up some unit test formatting