Fixed seed for tests
Tweaked method to use varargs
Fixed some bugs and added more tests
Added new close method for testing