get tests working in subdir without too much hackery