Overriding decision functions for testing