Fix miss detecting
Add test case for moose