Adding unit test for the methods by interactions map and re-factoring resource state machine to make build() to call register()