Added tests for createAction