Added rethrow of exception as AssertionError when a test fails
Switched to assertArrayEquals for better results comparison