add unit tests for ApplyAs method in EventStoredAggregateRoot
change codes order