Added test case for autoloading middleware constants