moved test to a separate file and removed unnecessary code in onewayBinding()