Bugfix/vararray

Added some tests