bugfix: output location and unittest