improved and extended core-input tests

test if change and input events handlers are called
test if password attribute is applied
proper test if invalid and valid event handler are called instead of `logMessage`