Fix tests for the compact option and add its correct functionality - v0.0.8