fixed unit tests and now compiling with debug symbols. closes #138