diff --git a/lib/pavlov/command.rb b/lib/pavlov/command.rb
index <HASH>..<HASH> 100644
--- a/lib/pavlov/command.rb
+++ b/lib/pavlov/command.rb
@@ -1,4 +1,5 @@
 require 'active_support/concern'
+require_relative 'operation'
 
 module Pavlov
   module Command
diff --git a/lib/pavlov/operation.rb b/lib/pavlov/operation.rb
index <HASH>..<HASH> 100644
--- a/lib/pavlov/operation.rb
+++ b/lib/pavlov/operation.rb
@@ -1,6 +1,7 @@
 require 'active_support/concern'
 require 'pavlov/validations'
 require 'pavlov/helpers'
+require_relative 'access_denied'
 
 module Pavlov
   module Operation
diff --git a/lib/pavlov/query.rb b/lib/pavlov/query.rb
index <HASH>..<HASH> 100644
--- a/lib/pavlov/query.rb
+++ b/lib/pavlov/query.rb
@@ -1,4 +1,5 @@
 require 'active_support/concern'
+require_relative 'operation'
 
 module Pavlov
   module Query
Fix for running test against commands and queries.