fixed Object.equals and added tests for primitive stubs
fix Object.equals and adapt tests