Consistent syntax for tests

Changed initialization of vars from `var` to `:=`
Added handling for empty slice